using System.Collections.Generic;

namespace ExamServer.Models
{
  public class TreeViewModel
  {
    public int id { get; set; }
    public string text { get; set; }

    public State state { get; set; }
    public int Pid{get;set;}
    public IEnumerable<TreeViewModel> nodes{get;set;}

  }
  public class State
  {
    public bool Checked { get; set; } //checked disabled是C#关键字需要规避
    public bool Disabled { get; set; }
   public bool expanded { get; set; } 
   public bool selected { get; set; } 
  }
}